package com.djmw.mouse.web.helper;

import javax.servlet.ServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.djmw.mouse.service.IndustryService;

/**
 * 选择行业公用弹出窗口。
 * 
 * @author leo
 */

@Controller
@RequestMapping(value = "/helper/select-industry-modal")
public class SelectIndustryController {

	@Autowired
	private IndustryService industryService;

	@RequestMapping(value = "")
	public String view(Model model, ServletRequest request) {
		model.addAttribute("allIndustries", industryService.getAllIndustriesTree());
		return "/helper/select-industry-modal";
	}
}
